<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title></title>
</head>

<script type="text/javascript">
    var size = 1;
    var bool = true;
    function imgdistortion(){
        if (bool==true){
            size++;
        }
        if(size==100){
            bool=false;
        }
        if(bool==false){
            size--;
        }
        if(size==1){
            bool=true;
        }
        image1.width = 260 + size;
        image1.height = 160 - size;
        setTimeout("imgdistortion()",30);
    }
</script>
<body onLoad="imgdistortion()">
<img name="image1" src="img.jpg">
</body>

</html>
